
export const requestPayment = async (payment) => {
  try {
    const res = await wx.requestPayment({ ...payment })
    return {
      code: 0,
      msg: 'success', data: res
    }
  } catch (error) {
    return {
      code: -1,
      msg: 'fail', data: error
    }
  }
}
